#include <QCoreApplication>
#include <iostream>
#include <math.h>
using namespace std;

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
   double D;
   double x2,x1,y2,y1;
   double x,y;
   cout<<"Vvedite pervuyu koordinatu vtoroy tochki= ";
   cin>>x2;
   cout<<"Vvedite vtoruyu koordinatu vtoroy tochki= ";
   cin>>y2;
   cout<<"Vvedite pervuyu koordinatu pervoy tochki= ";
   cin>>x1;
   cout<<"Vvedite vtoruyu koordinatu pervoy tochki= ";
   cin>>y1;
   x=(x2-x1)*(x2-x1);
   y=(y2-y1)*(y2-y1);
   D=sqrt(fabs(x+y));
   cout<<"Rasstoyanie mezhdu tochkami="<<D;

   return a.exec();

}
